UpperCase (str)

UpperCase and UCase (str) are equivalent functions. UpperCase is preferred in Crystal syntax, whereas UCase is preferred in Basic syntax.

Arguments

str is a text string.

Returns

Text String

Action

UpperCase returns the text string or text value in the data field in upper case (capital letters).

Typical uses

A good use of this function is when a field contains both uppercase and lowercase letters and you want to convert all letters to uppercase for consistency.

Examples

The following examples are applicable to both Basic and Crystal syntax, although UCase is preferred in the latter:

UpperCase("Description")

Returns "DESCRIPTION".

UpperCase({customer.FIRST NAME})

Returns "RONALD", where {customer.FIRST NAME} contains "Ronald".

UpperCase("Ronald Black")

Returns "RONALD BLACK".

UpperCase("abc12345")

Returns "ABC12345".

UpperCase("BrEaD " + "AND " + "bUtTeR" )

Returns "BREAD AND BUTTER".

Related topics

LowerCase (str)



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com